import platgo as pg

num = 'single'
enc = 'real'
other = None
D = 20
cal_obj = ['sum(square(abs(x)), 1)']
cal_con = None
pro = pg.UserProblem(num, enc, other, D, ub=5, lb=-5, cal_obj=cal_obj, cal_con=cal_con)
maxgen = 200
Algorithm = pg.algorithms.DE(maxgen=maxgen, problem=pro)

pop = Algorithm.go(100)

print(pop)